<?php
// testing yaml

$lib=&wak::getservice('waklib');
$lib->needclass('yamlfilenode');

//include(WAK_CORE_PATH.'lib/spyc-0.2.3/spyc.php');
//$data=spyc::yamlload(WAK_CORE_PATH.'lib/spyc-0.2.3/spyc.yml');
//return wakdebug::vardump($data,'html',100);

$node=&new yamlFileNode('cfg/test.yml');
$ok=$node->load();

$data=$node->getData('');

$t=&new waktrigger();

$pData=array('qt'=>10);
$p=&new wakparameters($pData);
$t->set('parameters',$p);

$data['trigger']=$t->getallassoc();
//$data[]=array('user'=>'fredbird','email'=>'fb@fb.org');
$node->setData($data);
$node->setData(time(),'time');
$node->save();

return wakdebug::vardump($node);

?>
